/*
 * @LastEditors: 杜康
 * @LastEditTime: 2022-02-07 16:03:50
 */
const { app, BrowserWindow } = require('electron')
let mainWindow = null
app
  .on('ready', () => {
    mainWindow = new BrowserWindow({
      webPreferences: {
        contextIsolation: false,
        nodeIntegration: true
      }
    }) // 创建一个渲染线程
    mainWindow.webContents.loadFile('app/index.html')
  })